package com.eastcom.dataquality.core.util.db;

import java.util.HashMap;
import java.util.Map;

public class ResultDataMeta {

	private int columnCount;
	
	private Map columnNameMap=new HashMap();
	
	private Map columnTypeMap=new HashMap();
	
	private Map columnTypeNameMap=new HashMap();
	
	private Map columnClassNameMap=new HashMap();
	
	public String getColumnName(int column){
		return (String)this.columnNameMap.get(column);
	}
	
	public int getColumnType(int column){
		return (Integer)this.columnTypeMap.get(column);
    }
	
	public String getColumnTypeName(int column) {
		return (String)this.columnTypeNameMap.get(column);
	}

	public String getColumnClassName(int column) {
		return (String)this.columnClassNameMap.get(column);
	}
	
	public int getColumnCount() {
		return columnCount;
	}

	public void setColumnCount(int columnCount) {
		this.columnCount = columnCount;
	}
	
	public void setColumnName(int columnIndex,String columnName){
		this.columnNameMap.put(columnIndex, columnName);
	}
	
	public void setColumnType(int columnIndex,int columnType){
		this.columnTypeMap.put(columnIndex, columnType);
	}

	public void setColumnTypeName(int columnIndex,String columnTypeName){
		this.columnTypeNameMap.put(columnIndex, columnTypeName);
	}
	
	public void setColumnClassName(int columnIndex,String columnClassName){
		this.columnClassNameMap.put(columnIndex, columnClassName);
	}
	
}
